package com.ufgov.agcfs.manage.entity;

import java.io.Serializable;
import java.math.BigDecimal;


public class Company implements Serializable {
	private static final long serialVersionUID = 1L;

	private String coId;

	private String hireId;
	
	private String coCode;

	private String parentCoId;
	
	private String coName;
	
	private String coFullName;
	
	private String linkMan;

	private String isEnabled;

	private String coDesc;

	private Integer levelNum;
	
	private String deptDetail;
	
	private Integer dispOrder;

	public Company() {
	}

	public String getCoId() {
		return this.coId;
	}

	public void setCoId(String coId) {
		this.coId = coId;
	}

	public String getHireId() {
		return this.hireId;
	}

	public void setHireId(String hireId) {
		this.hireId = hireId;
	}

	public String getCoCode() {
		return this.coCode;
	}

	public void setCoCode(String coCode) {
		this.coCode = coCode;
	}

	public String getParentCoId() {
		return this.parentCoId;
	}

	public void setParentCoId(String parentCoId) {
		this.parentCoId = parentCoId;
	}

	public String getCoName() {
		return this.coName;
	}

	public void setCoName(String coName) {
		this.coName = coName;
	}

	public String getCoFullName() {
		return this.coFullName;
	}

	public void setCoFullName(String coFullName) {
		this.coFullName = coFullName;
	}

	public String getLinkMan() {
		return this.linkMan;
	}
	
	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}
	
	public String getIsEnabled() {
		return this.isEnabled;
	}
	
	public void setIsEnabled(String isEnabled) {
		this.isEnabled = isEnabled;
	}

	public String getCoDesc() {
		return this.coDesc;
	}
	
	public void setCoDesc(String coDesc) {
		this.coDesc = coDesc;
	}
	
	public Integer getLevelNum() {
		return this.levelNum;
	}
	
	public void setLevelNum(Integer levelNum) {
		this.levelNum = levelNum;
	}

	public String getDeptDetail() {
		return this.deptDetail;
	}
	
	public void setDeptDetail(String deptDetail) {
		this.deptDetail = deptDetail;
	}

	public Integer getDispOrde() {
		return this.dispOrder;
	}
	
	public void setDispOrder(Integer dispOrder) {
		this.dispOrder = dispOrder;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		
		Company castOther = (Company)other;
		return 
			this.coId.equals(castOther.coId);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.coCode.hashCode();
		hash = hash * prime + this.coId.hashCode();
		return hash;
	}

	public static Company createNode(String coId,String coCode,String coName,
			String parentCoId, String coFullName, Integer dispOrder){		
		Company node = new Company();
		node.setCoId(coId);
		node.setCoCode(coCode);
		node.setCoName(coName);
		node.setParentCoId(parentCoId);
		node.setCoFullName(coFullName);
		node.setDispOrder(dispOrder);
		return node;
	}
	
}